//
//  queueLogic.m
//  MyApplication
//
//  Created by 彭凯敏 on 15/8/3.
//  Copyright (c) 2015年 52xiaoluo. All rights reserved.
//

#import "queueLogic.h"

@implementation QueueLogic
{
    dispatch_queue_t workQueue;
    
}

static QueueLogic* _instance = nil;
+(instancetype) shareInstance
{
    static dispatch_once_t onceToken ;
    dispatch_once(&onceToken, ^{
        _instance = [[QueueLogic alloc] init] ;
    });
    
    return _instance ;
}

- (id)init
{
    [self createQueue];
    return self;
}

- (void)createQueue
{
    
    dispatch_queue_t queue = dispatch_queue_create("WorkQueue", NULL);
    workQueue = queue;
}

- (dispatch_queue_t)getWorkQueue
{
    return workQueue;
    
}


@end
